package com.itheima;

class Plane {
    double length;
    double wide;
    double height;
    double weight;

    public void fly() {
        System.out.println("飞机飞行");
    }
}

//直升机
class Copter extends Plane {
}

//喷气飞机
class JetPlane extends Plane {
}

//战斗机
class WarCraft extends Plane {
    public void fire() {
        System.out.println("发射子弹");
    }
}

//滑翔机
class Glider extends Plane {
}

// 啄木鸟
class woodpecker {
    double length;
    double wide;
    double height;
    double weight;

    public void fly() {
        System.out.println("鸟飞行");
    }
}

